package com.service;

import com.dto.BaseDto;
import com.entity.User;
import com.entity.UserExample;
import com.page.PageInfo;
import org.springframework.web.servlet.ModelAndView;

import java.sql.SQLException;
import java.util.List;

public interface UserService {
	public BaseDto getAllUsers(PageInfo pageInfo) throws SQLException;
	public BaseDto getUserById(int uid) throws SQLException;
	public BaseDto insertUser(User user) throws IllegalArgumentException, IllegalAccessException, SQLException;
	public BaseDto updateUser(User user) throws IllegalArgumentException, IllegalAccessException, SQLException,
		NoSuchFieldException, SecurityException;
	public BaseDto delateUser(int uid);
}
